javascript confirm yes no

62

javascript prompt yes/no -

var answer = window.confirm("Save data?");
if (answer) {
    //some code
}
else {
    //some code
}

Comments

Submit
0 Comments